<!--
 * @Author: Meow
 * @Date: 2019-10-10 16:19:40
 * @LastEditors: Meow
 * @LastEditTime: 2019-10-10 20:06:45
 * @Description: 表单
 -->
<template>
  <div>
    <el-form ref="form" :model="form" label-width="100px">
      <el-form-item label="系统名称：" v-for="(item,index) in form" :key="index">
        <el-input v-if="item.type==0" v-model="item.value"></el-input>
        <el-select v-if="item.type==1" v-model="item.value" placeholder="请选择">
          <el-option v-for="v in item.options" :key="v.value" :label="v.label" :value="v.value"></el-option>
        </el-select>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  name: "Form",
  props: {
    form: {
      type: Array,
      default: []
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
<style lang="less" scoped>
// @import url("../ProcessManagement.less");
</style>